import { defHttp } from '/@/utils/http/axios';

enum Api {
  list = '/uav/device/live/list',  // 查询直播设备列表
  arrtibutes= '/uav/device/deviceShadow', // 查询直播设备的属性
  setLiveCamera = '/uav/device/live/lensChange', //设置直播镜头
 queryLive= '/uav/device/live/query', // 查询直播
 setQuality= '/uav/device/live/setQuality', // 设置直播清晰度
 startLive= '/uav/device/live/start',  // 开始直播
 stopLive= '/uav/device/live/stop',  // 结束直播
 closeLight= '/uav/device/live/supplementLighClose',  // 关闭补光灯
}

export const list = (params) => defHttp.get({ url: Api.list, params });
export const attributes = (params) => defHttp.get({ url: Api.arrtibutes, params });
export const setLiveCamera = (params) => defHttp.post({ url: Api.setLiveCamera, params });
export const queryLive = (params) => defHttp.post({ url: Api.queryLive, params });
export const setQuality = (params) => defHttp.post({ url: Api.setQuality, params });
export const startLive = (params) => defHttp.post({ url: Api.startLive, params });
export const stopLive = (params) => defHttp.post({ url: Api.stopLive, params });
export const closeLight = (params) => defHttp.post({ url: Api.closeLight, params });